/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-11-24 22:18:21  
 * Copyright (c) 2015- joysuch-版权所有     
 */

package com.joysuch.wwyt.risk.service;

import com.joysuch.wwyt.risk.entity.RiskEvaluationMethodResultItem;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface RiskEvaluationMethodResultItemService {

    public void add(RiskEvaluationMethodResultItem entity) throws Exception;

    void update(RiskEvaluationMethodResultItem entity) throws Exception;

    Page<RiskEvaluationMethodResultItem> findByPage(Pageable page);

    void delete(Long id);

    RiskEvaluationMethodResultItem findById(Long id);

    RiskEvaluationMethodResultItem findByMethodAndLevelKey(String method, String key);

    RiskEvaluationMethodResultItem findByMethodAndValue(String method, Float value);
}
